updated dircetions.js and index