Modifiction of map.js, started Render and Update methods