Converted word count bookmarklet to use structure defined by yeoman generator bookmarklet