Remove all global variables
Fix style throughout draw js file

Cleaned up code base for readability
Merge branch 'feature/javascript_clean_up' into develop