add js function capabilities