substitute $.when to promise I/F directly
change ajax callback I/F
change comments