#github script. (function() { $.ajax({ url: '/api/github', type: 'GET' }).done( function(data) { var github = document.createElement('div'); $(github).html('

' + data.issues + ' GitHub issues are open. (create one)

' + data.pulls + ' pull requests are open. (create one)').prependTo($('#github')) } ); })();