Send error as JSend
Load directories

Use AJAX calls to load and display directory data.