add javascript to google map in view.html