Upgrade jquery. With this the Uncaught reference error is also removed.