making map show and giving the widget a div
fixing naming conventions and jshint globals