Moving javascript from manifest file to home.js