Reset template location in HTML, minor JS change