fixes atrocious spelling mistake & refactors appalling redundancies in JS.
Merge pull request #3 from syntacticsugar/master

:D Grammar misssstakez! :D