declare global Scrollpoints variable with var