Update bcca/js/cosby.js

changed var d, for dialogue, for a more meaningful and semantic code base