Update index.js

This is better