add JS error tracking to google analytics