title: contract name throws undefined error?
body: <pre><code>  Mortgage.new({ from: ownerAccount, gas: defaultGas }).then(
      function(loanInstance) {
          loanContractAddress = loanInstance.address;
          $('#sectionAAddress').html('&lt;i class="fa fa-address-card"&gt;&lt;/i&gt; ' +
  </code></pre>
  
  <p>Mortgage is the contract name </p>
  
  <pre><code>var Mortgage = artifacts.require("./Mortgage.sol");
  
  module.exports = function(deployer) {
    deployer.deploy(Mortgage);
  };
  </code></pre>
  
  <p>Mortgage.sol</p>
  
  <pre><code>pragma solidity ^0.4.4;
  
  contract Mortgage {
  
    function Mortgage()
    {
      loanApplicant = msg.sender;
      loan.status = STATUS_INITIATED;
      balances[msg.sender] = 100000000;
    }
  
    /* address of the loan applicant */
    address loanApplicant;
  </code></pre>
  
  <p>I get the below js error in 
  UI</p>
  
  <blockquote>
    <p>Uncaught ReferenceError: Mortgage is not defined
        at deployLoanContract (app.js:22316)
        at HTMLButtonElement. (app.js:22610)
        at HTMLButtonElement.dispatch (jquery.min.js:3)
        at HTMLButtonElement.r.handle (jquery.min.js:3) deployLoanContract @ app.js:22316 (anonymous) @ app.js:22610 dispatch @ jquery.min.js:3
    r.handle @ jquery.min.js:3</p>
  </blockquote>
  
  <p>Please find the github url below to check the whole code
  <a href="https://github.com/rajivjc/mortgage-blockchain-demo/issues" rel="nofollow noreferrer">https://github.com/rajivjc/mortgage-blockchain-demo/issues</a></p>