forgot to add js functions