updated js and index