Minor code cleanup for tabbedinterfacejs.
Merge pull request #2064 from pjackson28/master

Minor code cleanup for tabbedinterface.js (#2062)