I think fs.write() makes the code a lot clearer than file.writeline(). It's a good way to show PhantomJS API as well.
Hmm, I can see your point there. I'm OK with this change.
Please squash your commits into a single commit.
Use fs.write in the example for clarity.
Leave the try/catch block.
use fs.write in the coffee example as well
Landed with some tweaks: include the issue link (see the contribution guide), remove extra whitespace.