added js and the 3 pages