Upgraded jQuery to version 1.9. Closes #2016.
Upgraded jQuery UI to version 1.9.2.

Fixed merge conflicts.