Update extension.js

updated formatting
added comments
removed unused functions
edited functions names/use to make sure it complies with SRS/SDD

To do: 
- make search domain and bookmark containers react the same
- make it clear which search domain is being used
- update colors
- organize all functions logically and variables where they can be