adding alertify.debug() which attaches alertify.error to window.onerror

*Updated PR to base on staging branch*
Great way to track JS errors, might make a nice addition to the alertify core.
To enable, run:
```javascript
alertify.debug();
```