Added ajax support for requests