Backport #2440 js parameter.