var system = require('system'); var fs = require('fs'); var page = require('webpage').create(); function modifyPage(filename) { console.log("Modifying " + filename); var rawPageString = fs.read(filename); rawPageString = rawPageString.replace(/