Astronomical library for JavaScript