Refactor errors.coffee
Fix classical JS pitfall in refactored errors
Merge branch 'patch-2' of https://github.com/kossnocorp/core-lib into kossnocorp-patch-2
remove unnecessary do