Fixed serialization of models.

Completely misunderstood toJSON. I was returning serialized strings on
each model instead of the object that I wanted serialized. In addition,
I used assert instead of assert.deepEqual, so the tests were doing
nothing at all.

toJSON now returns objects instead of strings.
Added npm ignore.

My JS was being unpublished mysteriously...