Uncaught TypeError: e is not a function