Gives structure to javascript games.