Adding require.js, fixing rendering method, adding map class