First pass at spell checker js implementation