trim background.js