refactored map.js.coffee func/methods made a class Plot