added support for AMD loaders on the client-side
added optional backtofront.onerror callback
don't die when a module function throws an exception