Update ui-map.js

should now be able to use the directive as an element