Bits of code for doing dynamic form element building with jquery