Commit .tm_properties, use jquery promise for ajax