Notes on different JS constructors