Revert "Backport #2440 js parameter."

This reverts commit 27a32c76befcdcc6fd526a501e7f99f7368be72b.