#0 Add log statements in javascript