fix pageScript.js to work with global