Make quote-plugin easier to use.

Also add missing var statement and missing semicolon to main lib.