Unified some Ajax logic in the JS client
Reindent calls to the new transportLogic.ajax function in the JS client