a bunch of useful stuff for creating a js game