Building JavaScript objects inspired by rosie.js and factory_girl