modifying already made google maps script to work with our app