This problem might have an easy solution, at least in my case it was easy.

In my case the the problem was with the merging of separate external JavaScript files. If you have merged individual JavaScript files, and if you have jQuery functions defined in them make sure they end with (jQuery); not with (jQuery). Don't forget the semicolon at the end!