Converting to chrome extension