DAT-2086 refactor nirvana ajax request