add comments, clean up code, add latest jquery UI