dirctive.js update