Lightweight message logger/debug helper for Javascript