Update js functions in field/js