getting latest and adding js functions for page 2

getting latest and adding js functions for page 2