Adding basic error checking in the requirejs layer. Also realized we shouldn't create the map until page loads.
Removed repetitive require on config module