html and javascript templates