ajax js fix