add JS code to replace technical type with human friendly string