migrated to Char, js errors around x5