Rename popup.js to core.js