adding directives.js
fix merge conflicts in storylayers.html