Update foundation.forms.js

Replace code to add hidden-field class to custom inputs.