update javascript on animals