fixes #173

Added JS docs