Okay, before I start I should mention that I have never done this before, so a few tests would not hurt before you commit yourself to a course of action. Having said that, I would write ASHX that returns JavaScript (much like a JSON WebService). This ASHX would build pre-packaged functions based on the...