refactor to put sioInput.js into hb/index.js