Fix a typo in the phpDoc comment and terminate the JS statement in the XHTML template