close #42 Conditional logging for js debugging