extend angular directive for epub-reader