Rather fix the coffee script than the js file...
Fix the directory test