You may not need to hack it at all. A simple approach is to search for a "Hacked Amateur Surgeon" version online, which many people find already modified and ready to play. Just be cautious about where you download browser-game files from and stick to sources you trust.