Error: undefined is not a function, add "$" at the beginning

Uncaught TypeError: undefined is not a function