updated jquery and UI, also minor code cleanup