Update directives.js

Quick fix to work on the device