Switching to requirejs for dependencies