Remove unused variable from fetch-pages module
Rewrite collections.js to use modules