Moved index to launch.js

bugfix

Added launch