Update www/js/index.js