ajax script not working correctly. Do it soon