AUI-1381 Use promise.then(undefined, callback) instead of catch shorthand for IE8 compatibility
AUI-1381 Source formatting