Generic JavaScript Game Engine Thing