Change the way array is cleared to zero elements

interactiveItems now is cleared by length = 0; instead of creating new array every time =[]; It is more efficient for garbage collector.