attach: refactoring of bem-structure + js