Added new js constructor snippet