Update page.js

removed local reference variables Since these would loose scope when extending the PAGE. PAGE.extend(...). Also cleans up the code a bit. Moved logging and options into public variables, so they are easier to reference.