new demo for js constructor