Basic game loop and single js file