add js scope