fix js and index