Solar system simulator in javascript