Put map initialization script in a separate file.
Added template.
Removed bug in creating js url.
Changed base url.
Now handles internal and external js files.
Uses the template.