Simple JavaScript Error Logger