window.onerror

Implement js error log functionality