Added requestAnimationFrame to draw function and loading class. Changed dragdealer initialization.