Fix blocking behaviour in some configurations

The implicit callback in the buffering function made browserify hang in some configurations (I noticed because it happened with a project I'm working on right now).
When I made the callbacks explicit the problem went away.
I also changed the name of the in-memory buffer to 'buffer' cause I thought the name 'inputString' was a bit meh.