Optimize array initialization
Provide the context via a parameter

Only for aesthetic purposes.
Fix the canvas resolution
Fix position scaling

The position of the hitobjects should be determined correctly now.
Move the async stuff to the end

Again - for aesthetic purposes.