Fix javascript class matching syntax

+ Shouldn't match when the capitalized word is encapsulated in a single/double quotes.