diff --git a/includes/common.inc b/includes/common.inc
index acc37479e8891fdb2b93e3cde829bb9e83420e52..57bff023381f18ef80de81133b10800697daa998 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -4323,8 +4323,8 @@ function drupal_build_js_cache($files) {
     // Build aggregate JS file.
     foreach ($files as $path => $info) {
       if ($info['preprocess']) {
-        // Append a ';' after each JS file to prevent them from running together.
-        $contents .= file_get_contents($path) . ';';
+        // Append a ';' and a newline after each JS file to prevent them from running together.
+        $contents .= file_get_contents($path) . ";\n";
       }
     }
     // Prefix filename to prevent blocking by firewalls which reject files