ReferenceError: assignment to undeclared variable prepTabs