#4 - start for TernJS integration
#4 - removed useless console.log stmts