update comments on prototypes
added rivets.js and associated tests