Chrome extension version of script