This is very dirty and unmaintainable. All other changes are okay, but I really think this should be removed (and all the gkCheckLoad* functions throughout the other files). There are other, much more elegant solutions to the problem being fixed here. We should consider something like [RequireJS](http://requirejs.org/).