Changed "instanceof jQuery" to "instanceof $"

Original code will break if jquery noconflict is applied, where $ and jQuery produces jQuery instance of different versions.