Made relevant changes for adding background script

Created a background.js file that will run as a background script -
indicated it in the manifest.json and made functions in scrollpad.js to
call approporate methods of the background script