creating webapi controller for javascript async calls