preload html templates when the page javascript is loaded