cleaned up javascript

-control events based on screen size
-fixed some minor bugs
-Updated Gmap code
-Organized code