JavaScript utility function to find tv series season and episode numbers from a string