changed variables in getCurrentLetter to be javascripty