Rewrite bemtree and bemhtml templates of posts block to new js syntax

@tavriaforever 
match body should be wrapped in anonymous function