Update directives.js

Fix variable name