jQuery UI code and practice