improve appendTo auto detection (fixes Issue #317)
improve form validator
compiled