added html and json rendering for libraries index