javascript classes requisite to running the game