Fixing rogue letter in JS