ajax requests using ContT monad transformer