How JavaScript Works: The Module Pattern, CommonJS, AMD, UMD, and ES6 Modules | Hacker News Reader