making passwd.js work as content script