Switched to requirejs and started implementing robot mode.