separated js into a new file
fixed script src
updated page2 and page3
Merge branch 'functionality'