Yeah that's a kluge. You should be able to require the files under phantom/src/modules, like fs, system, webpage, webserver and child_process, but for some unknown reason, the css-test.js file was not able to require it. It didn't make sense to me and I tried a few different things to no avail. In the end I used this kluge to pass it so we could use it when making the resultant output html page.