added js for details page