isImported function
Checks if a library is present in the page.
Throws an UnsupportedError if the dart:html
library is not present.
This happens by checking the src field of all script tags in the html page.
Implementation
bool isImported(String url) => throw new UnsupportedError(
'Injecting js is only possible if the platform supports dart:hmtl!');