Externalization of import in HTML pages

Added a template containing all necessary import for HTML pages, and
fixed index.html to use that template