SpaceAge in JavaScript