background-mode.js from index.html