structure for js