Update sample.js

Optional named arguments dependency removed