I've been prototyping a HTML CSS javasxript all in one language to do exactly this, in particular great support for in-code representation of the data structures common in HTML. Hopefully you'll beat me to it so I can stop spending time on it and use yours instead =D