Heavy refactoring

Created new file astro.js to separate all the purely astronomical
calculations. Moving form interactions to jQuery. Slow progress.