Javascript Library for handling erros in the application