allows solve.js be run from console by 'node solve.js'