window.onerror = function(msg, url, line){
    var img = new Image();
    img.src = '/error/javascript'
            + '?msg='  + encodeURIComponent(msg)
            + '&url='  + encodeURIComponent(url)
            + '&line=' + encodeURIComponent(line)

    // true  : suppress error, browser will NOT report it
    // false : normal error, browser will report it
    return true;
}
