Fix for invalid JS comments

HTML comments in Javascript block causing syntax error.