Support `require` in BEMJSON and BEMHTML