External js load optimizations in base.html template.