Call jQuery methods on promise resolves