Population-viewer is a project mainly written in JavaScript, it's free.
Example GeoIQ API application - Population Viewer