Adding logging for client side js errors