added requirejs error handling.
added an error task which should not generate any output.
updated package.json