quick cleanup of tagging func
Merge pull request #28 from emccode/cleanupJavaScript

quick cleanup of tagging func