title: Geting "cannot read property '[method]' of undefined"
body: <p>This may have a simple solution, but I'm just not seeing it.  I'm writing a protractor test and setting a page object file</p>
  
  <p>newstate.js (the page object file)</p>
  
  <pre><code>'use strict';
  
  var newstate = function (url) {
      browser.get(url);
  };
  
  newstate.prototype = Object.create({}, {
      dd: { select: function(state) { $('select option[value="'+state+'"]').click(); } }
  });
  
  module.exports = newstate;
  </code></pre>
  
  <p>The spec.js file:</p>
  
  <pre><code>'use strict';
  
  var newstate = require('newstate.js');
  
  describe('Testing newstate', function() {
      var statePage;
      beforeAll(function() {
          statePage = new newstate('http://localhost:8080');
      });
  
      it('should select a state', function() {
          statePage.dd.select('AK');
      })
  })
  </code></pre>
  
  <p>The conf.js file:</p>
  
  <pre><code>exports.config = {
      framework: 'jasmine',
      specs: ['test-spec.js'],
      useAllAngular2AppRoots: true,
      jasmineNodeOpts: {
          showColors: true
      }
  };
  </code></pre>
  
  <p>When I run protractor, I get:</p>
  
  <pre><code>$ protractor conf.js
  Failures:
  1) Testing newstate should select a state
    Message:
      Failed: Cannot read property 'select' of undefined
  </code></pre>
  
  <p>It is launching the browser, opening the webpage, just as it should when I've called <code>new newstate('...')</code>  But for some reason it doesn't want to see my dd.select function. What am I missing or doing wrong?  Thanks.</p>