Version for other browsers

This version is a better way to do things, but it does not work in chrome. Every 30 or so frames, it will skip.