Update index.js

reformatted