Adding the code examples from the jQuery UI lecture