Updated 'Documentation for Word' to use Mozilla's JavaScript Reference.

* Moved the logic out of Bash and into a Ruby module