adding alertify.debug() which attaches alertify.error to window.onerror
Merge pull request #115 from janeklb/feature-handleErrors

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