Copied everything into content.js and made it run properly.