resourceloader: Move per-page function calls to startup.js