This is a total hack and I didn't realize it. Your comment prompted me to look at things a little closer and I realized that the problem is that this is happening before the other events that happen after jQuery's pageready function. This can be fixed by simply wrapping this JS in the jQuery pageready function. Please see this commit (https://github.com/topcoderinc/tc-site/commit/928ee583f0b4abde53a1abf841f1d35d7b1bb957) and delete this pull request so I can send another. Thanks!