setup ajax errors