fixing getDomainfromUrl