Updated to AJAX instead of POST