Update index.js

Less complicated run order