Learn new Javascript functionality and separating main map code into manageable chunks