Update slideDirection.js