Astronomical Algorithms in Javascript