I think I may be missing something. As far as I know JS doesn't have a Strings.endsWith...