A Javascript Logger