Horribly broken, but I seriously have to save. Now using Requirejs