cleaned up robot.js