added support for errors
Merge https://github.com/Idnan/jsLog