fix $.ui is undefined -just need "that" as the scope