README: More documentation about interface to JS