use jQuery to do the remove/clone nodes for better compatibility

initial reason is old code has a bug on ie<=8(see also #16629)
Merge branch '4.2/refactor-cf-cascaded-selects-js' into 4.2-trunk