Update viewer.js to work over every input element although it is not in a form