Print coordinates
Dependency injection
Get rid of globals
Get rid of globals
Re-query rather than using globals
Switch load order
No need to initiate js from markup when js is loaded at end of body