Moves js to external file
Functional solution
Restructure to use onDocument load correctly
Fixed formatting, removed extra spacing
Removes map.js from project root
Merge pull request #2 from DeeZone/Issue1-External_js

Moves js to external file