add js functions file