add js flow