input.js: update to latest bonescript

* Remove globals, etc.