Update scrollDirection.js