Update version 2.0 prototype

Add JsDoc.