gif inside ajax
more errors rectified