Refactor to use Javascript Ephemeris