A couple of (suggested) JavaScript fixes.

If the field is contains hyphens this will break, the above code fixes this.

All cloned inputs had their values set to '', but this affected the buttons also.