added placeholder, required, maxlength and name to textbox.js

Not sure whether this is the right pattern to add more attributes to fields. Please review.