Expose addToHomescreen as an AMD or CommonJS module