Added undefined param to JS

#2486