adding new directive - changes to Entry.js