function createDiv(guiContainer, classes, callback) {
        var newDiv = document.createElement('DIV');
        newDiv.className = classes;
        guiContainer.appendChild(newDiv);

        if (callback) {
            callback();
        }

        return newDiv;
    }
/**
     * Creates a DIV and appends to the given DOMElement container.
     * 
     * @method createDiv
     * @param  {DOMElement} guiContainer The container to append the DIV to.
     * @param  {String}   classes        The classname to give the DIV.
     * @param  {Function} callback       Optional callback function.
     * @return {DOMElement}              The newly created DIV.
     */
Creates a DIV and appends to the given DOMElement container.

@method createDiv
@param  {DOMElement} guiContainer The container to append the DIV to.
@param  {String}   classes        The classname to give the DIV.
@param  {Function} callback       Optional callback function.
@return {DOMElement}              The newly created DIV.
Creates a DIV and appends to the given DOMElement container . @method createDiv @param { DOMElement } guiContainer The container to append the DIV to . @param { String } classes The classname to give the DIV . @param { Function } callback Optional callback function . @return { DOMElement } The newly created DIV .
function createDiv(guiContainer, classes, callback) {
        var newDiv = document.createElement('DIV');
        newDiv.className = classes;
        guiContainer.appendChild(newDiv);
        if (callback) {
            callback();
        }
        return newDiv;
    }
function createDiv ( guiContainer , classes , callback ) { var newDiv = document . createElement ( 'DIV' ) ; newDiv . className = classes ; guiContainer . appendChild ( newDiv ) ; if ( callback ) { callback ( ) ; } return newDiv ; }
Creates a DIV and appends to the given DOMElement container.
Creates a DIV and appends to the given DOMElement container .