add javascript variable for add a class to the directory place holder.