Updated Solution to Javascript Input Url Exercise