JS - Re-render on orientation change