js base struct