Minor javascript comment/close script fix

Will now validate properly for anyone using Netbeans 7.3/Nashorn based
javascript parser

https://netbeans.org/bugzilla/show_bug.cgi?id=226471