Fix JavaScript plugin build break after rotation->orientation property change