pushed planetarium generation to js file