adding jquery promises