Issue #78, Add documentation on javascript method