Basic orbital simulator in Javascript