Directory code improved
New: helper functions

* new: calculate amount of elements per column, array returned
* new: javascript from c/js can be required
* new: route from backend can be processed