Spell checker with angularjs implemented