Lunar in Javascript