Building the info panel completely in JavaScript.