Missing text type on inputs added for poll in javascript