Split ajax call into generic function under the WebGUI.Prime namespace