Update bcca/js/cosby.js

//is availableDirections global?