make $.ajax useable