Add letters helper (renamed) to prototype; extract isAnagram method