A fix. Without it, if your file ends with "s.ts", the "s" is absorbed in getAviableMovies.