Fix unregister function

Hi!
Following the specification you can only unregister a Service Worker register through a ServiceWorkerRegistration.
I just tested it on Chrome 40 beta and it definitely works.