added logging from js