Split out the background script into each individual file per M.* object. Created a background page instead which loads all files. Popup now uses storage.js from background page. Right clicking brings out a new context menu which can be used to search the Spotify API.