Enhance default template to support external js.
Satisfy jshint, minor fix.