Update index.js

using js_beautify