StarJs is a JavaScript implementation of formulae and algorithms described in 'Astronomy on the Personal Computer' by O. Montenbrook and T. Pfleger (4th edition that uses C instead of FORTRAN).
There are some examples in the examples
directory.
build.sh
uses Google Closure Compiler.