results only saved in DB with regular 5 seconds interval
- onbeforeunload was not working anymore
- essentially onbeforeundload is also included in visibilitychange ==hidden
- this does not allow regular ajax call to save in db
- changed to use navigator.beaconsend
- additionally ublockorigin hindered the beacon call