First of all, Chrome extensions are not allowed to run the built-in Javascript Code (for example, any piece of code that is not in the .js file, but in the DOM).
:
JavaScript. , script, "-", .
, :
<sctipt src="popup.js"></script>
-, , , , "Inspect popup". , "" . , , " ", .
