add some js logging