browserify added and testing resolved so app logic  can be written like a node module