wcs object can be initialized with js object