Use Closure Compiler to optimize code.

Made EquatorialPos into a normal Javascript class.