rearrange function declarations within automatch function so it works in Chrome extension and remove trailing whitespace
add function wrapper around whole script, change how automatch button is added so it works in the main extension
unwrap the callback functions
send JSON instead of XML response, fix problem where client sees null response
Merge pull request #1 from michaeljb/master

JSON instead of XML, some style/formatting changes