Programmatically generate montages in JavaScript.