Fixed prev_index declaration in order to comply with JS strict mode.
Fixed prev_index declaration in order to comply with JS strict mode.

INGCRENGIFO/materialize,ZiperRom1/materialize,ZiperRom1/materialize,INGCRENGIFO/materialize