tbtx base js