Changed JSInput to use gen3 script binding syntax