Add name fields in javascript