Dissecting and understanding the MEAN.JS generator