Update and rename bg.html to bg.js