Fix non-existent windowId error
Break up popup.js into browserify modules and add gulp builder