added js in ratings index