modified js files for page navigation