Update global-js.js

adding confirmation page wrap