Made basic changes to main.js

Put in main game loop.
Put calls to your draw function in the main method