In your code sample, you're calling startBrowsing
like it's a static method on your constructor function ProcessManager
.
Methods added to the prototype of a constructor function are available as methods on instances. You should be calling startBrowsing
on your instance of ProcessManager
:
var processManager = new ProcessManager();
processManager.startBrowsing();