js for add fields