Fix form can not submit in firefox
Form element created by javascript must be append to DOM in fire fox