custom javascript logger