Make console.log statements conditional; minor refactoring
Merge pull request #40 from nens/dirk_hide_JS_messages_when_not_devving

Make console.log statements conditional; minor refactoring