結果 : get first part of url javascript