very simple javascript logger