Originally grabbed this source from https://github.com/wayou/t-rex-runner and drunkenly turning this into an Outrun-style Chrome extension.
see the source from chromium