Use fs.write in the example for clarity.

I think `fs.write()` makes the code a lot clearer than `file.writeline()`. It's a good way to show PhantomJS API as well.