added js for page 2