Bash Script Match Regex Javascript Url Redirect