before i mess everything up, moving fb authentication to background.js