added structure for js