Fix reference errors in Map.js controller