changes for js and index