bai javascripts