optimized constructor, almond js in minified