added in js for first 3 pages