Made the send beacon script html aware