Constructors' constructor for JavaScript