Object literal vs. constructor -- proof of concept