create main.js and background, # fix 2