TypeError: Object(...) is not a function

Did someone encounter the same error as mine?

Never mind, solved it. Just place the line 3 under the line 6