Move javascript off of template into its own file.
Improve js syntax and organization.
Fix google map.