DDBNEXT-185: refactor code

  - remove console.log
  - fix style using Google closure fixstyle