Add test to js word count that tests counting special words

Specifically, words that are properties or methods on Object.
Merge pull request #1408 from drueck/try-counting-constructor

Add test to javascript word count about counting special words