Update index.js

startup time impromvement: require stuff once its really needed