Switch to using requirejs. SO MUCH NICER.