Simple javascript logger