added mongodb and jquery logic to persist the hilighted texts