Update field.php

To make it possible to add more dynamic JavaScript attributes to text and other form field types.