TypeError: Cannot call method 'positionDropdown' of undefined