Added test for alert on error.
Added documentation (javadoc / jsdoc).
Added context-url for module loader.