function createChannelElement(channelObject) {
    $('#channels ul').append($('<li>').click(function(){switchChannel(channelObject)}).html(channelObject.name).append(
        $('<span>').addClass('channel-meta').append(
        // #7 #icns #chl replaced imgs with FA icons
        $('<i>').addClass('fa').addClass(channelObject.starred ? 'fa-star' : 'fa-star-o')).append(' ').append(
        $('<i>').addClass('fa fa-chevron-right'))))
    
}
//#8 #channel #new channel li creation
8 #channel #new channel li creation
8 #channel #new channel li creation
function createChannelElement(channelObject) {
    $('#channels ul').append($('<li>').click(function(){switchChannel(channelObject)}).html(channelObject.name).append(
        $('<span>').addClass('channel-meta').append(
        $('<i>').addClass('fa').addClass(channelObject.starred ? 'fa-star' : 'fa-star-o')).append(' ').append(
        $('<i>').addClass('fa fa-chevron-right'))))
}
function createChannelElement ( channelObject ) { $ ( '#channels ul' ) . append ( $ ( '<li>' ) . click ( function ( ) { switchChannel ( channelObject ) } ) . html ( channelObject . name ) . append ( $ ( '<span>' ) . addClass ( 'channel-meta' ) . append ( $ ( '<i>' ) . addClass ( 'fa' ) . addClass ( channelObject . starred ? 'fa-star' : 'fa-star-o' ) ) . append ( ' ' ) . append ( $ ( '<i>' ) . addClass ( 'fa fa-chevron-right' ) ) ) ) }
8 #channel #new channel li creation
8 #channel #new channel li creation
// #7 #icns #chl replaced imgs with FA icons