tbc javascript library (private)