JavaScript log collector