doc: add internal links and backticks around names
I noticed some inconsistencies in the docs that I've fixed in these commits.
- Added backticks around all names
- Added single quotes around all event names
- Added parenthesis after function names
- Added internal links between different sections
- Added external links to MDN for some JavaScript references
- Sorted the link definitions alphabetically