Universal js scroll for desktop and mobiles