All of the source files for web games are actually available to you if you dig deep enough in the developer tools. Very similar to how downloaded games work, except that the downloaded information doesn't persist (besides cookies/localstorage). Hope this helps, glad to hear you're interested ^_^