using promises to pull in html template