add consolelog lines in js, updated README