Refactor solar_system.js