fixed undeclared variables in jquery.format.js and page.js