Javascript fix to handle null names.