Updated index.js to latest version.