Add option parsing to console.js