adding more to the javascript, multiple pages