Use js+bemhtml tech and minor cleanup