Updated documentation
Fixed JS docs