ajax controller clear global variables