add js for result page