Marked global object instead of requiring asyncly
Fix window width and resizing; marked global var