Having audio in the browser respect the silent mode switch seems perfectly reasonable.
I would find it frustrating if my phone was set to silent and it played button noises on a website.