input2.js: updated style