tjholowaychuk's debug clone for browser environment