Issue #27: moved log functions out of JSBase to JSLog