Fixed issues with globals

* Renamed Node to ChordNode since mocha complained
* Removed assignments in require() calls