@anykey3, Do not post updates to the question as answers! Edit the question instead. Also, the code snippet is obviously not valid syntax. Stop editing or hiding the code. If it's sensitive, make a proper working example with valid syntax and that we can run AS-IS, to see the problem you report.
If you want to use jQuery in a script included in popup.html, you need to include jquery.js in popup.html before your script.
Ok, thanks. I will have it in view
You said you see the error when you click on your browser action icon. That would mean the error comes from the popup, not the content script.