BEM JavaScript transformations