Use ajax request

Doing an `https.request` seems to run synchronous code that creates a secure context which appears to take long periods of time on certain machines.

So switch to just use an ajax request which appears to not impact start time at all and check the `navigator.onLine` property before sending to prevent offline errors from showing up in the console

Closes #27