Moved index to launch.js

bugfix