Convert old BEMHTML syntax to Javascript-compatible or BH Javascript-compatible syntax.