added js for results page