renamed static.js to pages.js