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

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