Fix url for long poll option

Remove unneeded error div

Add error handling for ajax post call

Fix error handling for ajax post call

Add jquery.support.cors = true