add extra js functions