Update .js and index