Except DOM-Reloading with XHR-Request a Full-Page-Reload is triggered with current code
$('#parentfolder').click(function() { getFolderInfo(currentpath); } );
Returnig false is required to avoid this...
$('#parentfolder').click(function() { getFolderInfo(currentpath); return false; } );