Attempt at adding attributes and classes to z3c.form fields in register template via javascript.