fixed check_nickname js call