Use externs/exports correctly; keep time constant.
Calculate sidereal time and Sun position once only.