Letter spelling javascript fix