A Simple bencoding implementation written in JavaScript