js functions added