Update nashorndemo.js

Initial changes