Update SP11_restore.js

a couple of adjustments because of the enabling of SSL