cbl-restart.js adjusted for ios