Correct typos
Move constants and utility functions to separate files
Move main function to the beginning of the file
Move includeRegexp to util file
Move getRequestDataAndColors to util file
Improve explanations