added functionality for maps using javascript and a maps controller