update to new HTMLImports api.