Unit testing and minor fixes

A few minor changes for your consideration:
* bookmarklet script now served with proper content type (avoiding a warning from Chrome)
* unit test case for the above (execute test suite by invoking `rake`)
* javascript in README fixed