Update direction.js