This tool will generate C# classes based on your HTML as input. These can then be used to safely refer to ID and class names wihtout risking of misspelling.
The code can then be converted using the SharpKit C#->JavaScript generator.
Contact me directly on hultqvist@silentorbit.com