refactored angularjs code to use services
completed SentenceConditions service and fixed font classes