function getLogin(){
  return window.location.hash.slice(1)
}

var foundTemplate = $('#template').html();
Mustache.parse(foundTemplate);

var loadData = function(login, cb){
  if(login){
    var searchURL = 'https://api.github.com/search/issues?q=type:pr+author:'+login+'&sort=created&order=asc&per_page=1'
    $.getJSON(searchURL, function(data){
      if(data.items.length > 0){
        $.getJSON(data.items[0].pull_request.url, function(data){
          cb(data)
        })
      } else {
        cb(null)
      }
    }).error(function() { renderError(getLogin()+" isn't a valid GitHub login") })
  }
}

var renderData = function(pullRequestData){
  if(pullRequestData){
    $('#main').html(Mustache.render(foundTemplate, pullRequestData))
  } else {
    renderError('It doesn\'t look like '+getLogin()+' has sent a pull request yet.')
  }
}

var renderError = function (message) {
  $('#main').html("<p>"+message+"</p>")
}

$(window).on('hashchange',function(){
  loadData(getLogin(), renderData)
});

$('#user-form').submit(function(){
  window.location.hash = $('#login')[0].value
  $('#login')[0].value = ""
  return false
})

loadData(getLogin(), renderData)

@@ -131,19 +131,24 @@
 late);%0A%0A
-var
+function
  loadDat
@@ -148,27 +148,16 @@
 loadData
- = function
 (login, 
@@ -590,27 +590,32 @@
 ) %7D)%0A  %7D%0A%7D%0A%0A
-var
+function
  renderData 
@@ -613,27 +613,16 @@
 nderData
- = function
 (pullReq
@@ -827,19 +827,24 @@
 %0A  %7D%0A%7D%0A%0A
-var
+function
  renderE
@@ -851,20 +851,8 @@
 rror
- = function 
 (mes
@@ -856,17 +856,16 @@
 message)
- 
 %7B%0A  $('#

Define all functions the same way