Deleting $.ajax( ) and using correct documentation