refactor the constructObject helper to use the module soc

I took the constructObject pattern and made a module out of it.
It is maintained in Livescript, not sure how people feel about having dependencies written in AltJs ;) but I figured I'd be upfront about it. Let me know what you guys think.