Have you just copied a project and you're getting some JavaScript error from JQuery or other libraries?
This error happens only if you clone the project via FileZilla.
Solution
To avoid this error, just clone the project with WinSCP and all JavaScripts should be copied fine.