Refactor bemhtml

// cc @tormozz48 @tavriaforever @gela-d 
line between `var` and `return`