new js for index