Added more JavaScript attributes to the fields