Updated to latest jquery versions and fixed a few bugs.