basic backbone code for making a web game with js on html canvas