var sourcecode = $('#sourcecode');
if (sourcecode.length) {
var value = sourcecode.text();
var mode = sourcecode.attr('language');
var pre = sourcecode.get(0);
if ($('#repositories').length) {
var listOptions = {
valueNames: ['name']
};
var repoList = new List('repositories', listOptions);
}
if ($('#branchList').length) {
var listBranchOptions = {
valueNames: ['item']
};
var repoList = new List('branchList', listBranchOptions);