moving from flash messages to jquery responses