remove console.log from javascript example

fixes #1