diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 8c3a0c6bca6e1997f27d1c74ea290980d7f3952e..59056ea87192a7e7f7d0f0a6e0efdbc7e53db824 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -381,9 +381,10 @@ $(document).ready(function() {
 				 * @param data
 				 */
 				stop: function(e, data) {
-					if(data.dataType != 'iframe ') {
+					if(data.dataType !== 'iframe') {
 						$('#upload input.stop').hide();
 					}
+
 					//IE < 10 does not fire the necessary events for the progress bar.
 					if($.browser.msie && parseInt($.browser.version) < 10) {
 						return;
@@ -558,6 +559,7 @@ $(document).ready(function() {
 
 					var eventSource=new OC.EventSource(OC.filePath('files','ajax','newfile.php'),{dir:$('#dir').val(),source:name,filename:localName});
 					eventSource.listen('progress',function(progress){
+						//IE < 10 does not fire the necessary events for the progress bar.
 						if($.browser.msie && parseInt($.browser.version) < 10) {
 						} else {
 							$('#uploadprogressbar').progressbar('value',progress);