Simple javascript logging utility