Comment.js fix patch

Added jsapi includes to choreographer and dancer htmls.

Fixed a lot of bugs in comment.js and added some documentation.