hacked it together, still learning requirejs...