Javascript log component