updated new if statements in the js for the second page
Merge pull request #7 from yuanphoon/updated_images_and_functions

updated new if statements in the js for the second page