function log(msg) {
    var log = $("#messages");
    log.html(log.html() + msg + '<br>');
    log.scrollTop(log[0].scrollHeight - log.height());
}
/* log(msg)
 *
 * This function must always me available, even if it does nothing.
 */
log(msg)
This function must always me available, even if it does nothing.
log ( msg ) This function must always me available even if it does nothing .
function log(msg) {
    var log = $("#messages");
    log.html(log.html() + msg + '<br>');
    log.scrollTop(log[0].scrollHeight - log.height());
}
function log ( msg ) { var log = $ ( "#messages" ) ; log . html ( log . html ( ) + msg + '<br>' ) ; log . scrollTop ( log [ 0 ] . scrollHeight - log . height ( ) ) ; }
log(msg)
 This function must always me available, even if it does nothing.
log ( msg ) This function must always me available even if it does nothing .