added js for popup