Fixing scroll issue with global nanoscroller object