fixes code to make compatible with chrome extension, and add a new extension.