Client side spell checker javascript