Moved Constellation logic to constellation_js.js