Updated ajax and js