added mocha browser tests. cleaned up package.json, commenting. fixed Object.defineProperty bug.