Completely rewritten JavaScript

In response to my question (#84) i decided to undertake completely rewriting Hebcal's JavaScript code. It is now set up for both Node.js and browser-side JS. I namespaced everything under the variable `Hebcal`.
I documented the rich API in javascript/README.md.