title: Not able to refer a function written in other js file
body: <p>When I am using the below code I am getting an error.</p>
  
  <p>Tool Used: protractor<br>
  framework: jasmine<br>
  IDE: Webstorm</p>
  
  <pre><code>//Page object file - newPage.js
  newPage = function(){
      function clickCandidate(){
          //All your code that you want to call from the test spec
      });
  };
  module.exports = new newPage();
  
  //Test Spec file - test.js
  var newPage = require('./newPage.js'); //Write the location of your javascript file
  it('Click on candidate status Screened', function () {
      //Call the function
      newPage.clickCandidate();
  });
  </code></pre>
  
  <p>I am getting error that:</p>
  
  <blockquote>
    <p>Error: Cannot find module 'scenarios/newPage.js'</p>
  </blockquote>