update javascripts on animal