Extracted the js prototype from the README file.