simple logging framework for javascript