Make getpage.js cli-friendly