Update js/index.js