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

@tavriaforever