refactoring bemjson.js.js