[javascript] Structs in Javascript