Added directive.js

Signed-off-by: cameronbourke <cameron2295@gmail.com>