- merge the safari-related changes to init.js from zzzeeksphinx

(cherry picked from commit a2fc048775e3a9104db20881fa333bd7695d24ff)