clean up the Collection class

Removed the jsonColl method, since it's not called. Used
hasOwnProperty throughout. Removed the hasOwnProperty check from the
add method, since none of the callers check the return value to make
sure the assignment happened.
Merge pull request #2 from db48x/collection

clean up the Collection class