finish getunique name and get responseType js