removed dependency on prototype.js toJSON implementation
Merge pull request #2 from aausch/remove-prototype

removing dependency on prototype.js toJSON implementation