Js refactor

Cleaned up some stuff.  Check out the IIFE on line 35 of markers.js -- removes dependency on global variables and privatizes those methods