don't use writeFileSync.  instead make save accept a callback

it's good for business anyway, but more importantly this appears to be the only change necessary to make this work with browserify and browserify-fs.