Minor refactoring in RobotiumWeb.js