Use beacon to fire js error log