Modifying error handling so that error bubbles to the top instead of simply being logged
Removing trailing comma and adding "notify" function which is an alias for "publish"
IE7 does not allow stylesheets to be added by inserting LINK element. Using document.createStyleSheet if available.