Some changes in the PWA script