Merge pull request #3 from pavelsmolka/master

Added some options
Changed modify cb to before/after as it makes more sense to me and removed space options as it never worked well! :-/
Updated jquery style :-)
Added support for using a function on the output option (issue #1)
Fix before implementation
Fix after implementation