Added dir.html and json handler