Remove text from url javascript