Only keep the elements in `elements` array
Only keep the elements in `elements` array

This is because the width/height caching that was done before was preventing the page to update it's width when the longest element grew wider.
zonayedpca/jInvertScroll,Faiz7412/jInvertScroll,Faiz7412/jInvertScroll,pixxelfactory/jInvertScroll