Bypassing postUrl with our own AJAX function.