In client-server applications in general, and web applications in particular, you have a choice as to where your code should execute. One can design a web application such that all the code runs on the server's CPU. Or you can have all the code execute on the client's CPU. Or, more likely, some combination of the two.