Separated $('#folder-create').submit(function() and
$('#create-confirm').click(function(). 

Now only it calls one time to create folder when it confirms.