Cross-browser, exposed fn, game generator, etc.

a lot of modifications!