Try my demos of procedural generation techniques.
Server-side programming is written in Python and runs on Google App Engine.
Client-side programming is written in JavaScript.
Try the simple HTML skyline demo.
Try the canvas demos: 1 2 3 4