Added traits support in JS SDK version 1.7.2