client side code for the Simple Share extension for Google Chrome