fix to javascript

Signed-off-by: Zarrar Shehzad <czarrar@gmail.com>
Merge pull request #180 from czarrar/logs

fix to javascript