Yet web page code can certainly be modified to perform malicious actions; XSS is a rampant example. More and more Javascript applications handle information that is of high value to users - passwords, private journals, financial information, etc. Code signing can protect users against an attacker who tampers with the architecture that handles this sensitive information.