Fixed too early triggering of Qunit when the page is built
Soltuion is not perfect, but workable