Changed spell checking code to accept a Typo.js dictionary loaded outside of the editor