Move to plain Ajax with Q for promises