Check If String Is Url Javascript