I’m sorry, but I have never used Selenium Webdriver, so we have no sample projects for you. (We implemented our own test system that basically uses the Robot extension.)
It is clear to me and to all those people using Selenium that one can write tests in Selenium that can somehow execute JavaScript code on the client, and that is sufficient to do whatever you need. If you believe the samples that those people posted in this forum are incomplete, please post a more complete example here. That will help other people in the future.