Lightweight logging framework for JavaScript