bitemporal and JavaScript invoke