made robot.js conform to crockford's jslint.com