Updated js animation utils.