Reset form on modal close
Remove unnecessary jQuery wrapper functions