Fixes Issue #2637

resolves #2637
more elegant way to make sure that the comment is not in a js string var
using a simple lookahead to check