added possible serviceworker code