[core][js] str_transform as object