Fix shift amounts in structures.js.

As per the ECMA standard (Section 11.7.2), only the least significant five bits of the right operand of a shift operation are taken into account.