Write a javascript function which takes the text in the html file and outputs a list with all words from the text and the count of their occurrences, ordered by the occurrences.
The result should look like result.html.
- Read the rules carefully and act according to them.
- No external libararies.
- Please use 2 spaces for indentation, no tabs.
- Don't pollute the global namespace, don't leak any variables.
- Send the result as a github gist like this file.