Clean up the JavaScript example

This brings the example much closer to current discussions. This does not yet take into account the idea of moving pushRegistrationManager to ServiceWorkerRegistration as I think Peter had some questions about that.

This fixes issue #17.
micro nit: you repeat "During development" trice. Perhaps removing the comments on lines 355 and 365 might make sense?