fixed non-detection of JS constructs because whitespace wasn't skipped