add js declaration