refactor: creating methods in javascript fields into folder unit of measures