Changed the permission to "activeTab" to reduce permissions required, altered jQuery .each loops to native .forEach loops.