playing around with requirejs, considering using the closure library instead