Fix dependency order

Note that before this our tests failed in Chrome 36, as it doesn’t fire HTMLImportsLoaded anymore.