typeof request.responseText !== 'undefined' && request.responseText !== null) {
                                var result = JSON.parse(request.responseText);
                                channels = result.value;
                                renderChannelStyles();
                            }
                        }
                    }
                };
                request.onerror = function (e) {
                    // Catching errors
                };
                request.send(null);
 