Fix content.js to pass tests