Passing a value to JS