Changed AJAX request in script to JQuery style.