Update input-control.js

Fix to change button type attr