update to new syntax to register service worker