working local ajax - fixed js to json in controller