Hamster is a small independent script that will help you to preserve error stack cross browsers, and also capture unexpected error that leaked to window scope.