I left this problem alone, and I was working on the other parts of my project
last night i ran into a problem and google up the error message and i came up with this thread of stack overflow
I looked at the accepted answer(first answer) he wrote
The problem was: I was using the slim build of jQuery,
I was trying to figure out the solution for another problem, I decided to give it a shot, I replace the jquery CDN link with the one which is not slim version, and bam it worked!