Resolve a Url in JavaScript using RegEx | Heykuki News