Minor refactor: put the positive case first and use branching instead of returning early.
Change DomHelper.prototype.loadScript to return the script it created.
Change modules to use loadScript instead of a createScriptSrc and insertInto combination.
Remove DomHelper.prototype.createScriptSrc as it is no longer used.
Use DomHelper.prototype.createElement internally instead of using document.createElement.
Add optional timeout to loadScript so it times out correctly if the script does not load. Currently defaults to two seconds.
Handle loadScript timeout correctly in the modules that are loading scripts.
Add spec to ensure a slow loading script is handled correctly.
Change loadScript callback to receive an error object if a timeout occurs and change the default timeout to 5 seconds. Set the timeout for the typekit module to 2 seconds.
Merge branch 'master' into bs-fix-inactive
Use the attributes argument to createElement instead of manually setting it.
Do not fire timeout if the script has already loaded.
Merge pull request #143 from typekit/bs-fix-inactive

Fix inactive when scripts do not load