javascript change get_name function