Click on the following link to view the code on GitHub
Text Analysing Single Page Application
Text Analyser
Unique words and the number of times they appear in the text
Further Analysis
Here the most relevant keywords will be selected when you press "Get Keywords", Whilst "Get Entities" will give you people, places, organisations e.t.c.