diff --git a/js/privatebin.js b/js/privatebin.js
index e8ba71f..c80cd3e 100644
--- a/js/privatebin.js
+++ b/js/privatebin.js
@@ -115,9 +115,9 @@ jQuery.PrivateBin = function($, sjcl, Base64, RawDeflate) {
         {
             var parameterHash = {};
             var parameterArray = parameterString.split('&');
-            if (parameterArray[0] != '') {
-                for (var i = 0; i < parameterArray.length; i++)
-                {
+            for (var i = 0; i < parameterArray.length; i++)
+            {
+                if (parameterArray[i] != '') {
                     var pair = parameterArray[i].split('=');
                     var key = decodeURIComponent(pair[0]);
                     var value = decodeURIComponent(pair[1]);
diff --git a/js/test.js b/js/test.js
index 399a856..5208fd3 100644
--- a/js/test.js
+++ b/js/test.js
@@ -4,7 +4,7 @@ var jsc = require('jsverify');
 before(function () {
     this.jsdom = require('jsdom-global')();
     global.$ = global.jQuery = require('./jquery-3.1.1');
-    global.sjcl = require('./sjcl-1.0.4');
+    global.sjcl = require('./sjcl-1.0.6');
     global.Base64 = require('./base64-2.1.9');
     global.RawDeflate = require('./rawdeflate-0.5');
     require('./rawinflate-0.3');
diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php
index d875b20..a29324b 100644
--- a/tpl/bootstrap.php
+++ b/tpl/bootstrap.php
@@ -69,7 +69,7 @@ if ($MARKDOWN):
 <?php
 endif;
 ?>
-		<script type="text/javascript" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-QZEnEp9v6HlbXEk7sCcLLWxC9mkIaoK5LIX9bp5UxYQG7q/wDPZvcAP0nwr51BXlDTG4fAeSjVsLpSAxGNdBxw==" crossorigin="anonymous"></script>
+		<script type="text/javascript" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-beT6rKtLu5r1n//Inx7Itv4vXYH5+1ZVG5EMk4LaWU37s7L7PrRVarqlvpESseZGlvvJ8mFJMnePh/2RjGnyLA==" crossorigin="anonymous"></script>
 		<!--[if lt IE 10]>
 		<style type="text/css">body {padding-left:60px;padding-right:60px;} #ienotice {display:block;} #oldienotice {display:block;}</style>
 		<![endif]-->
diff --git a/tpl/page.php b/tpl/page.php
index d63dc09..9ab9d59 100644
--- a/tpl/page.php
+++ b/tpl/page.php
@@ -47,7 +47,7 @@ if ($MARKDOWN):
 <?php
 endif;
 ?>
-		<script type="text/javascript" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-QZEnEp9v6HlbXEk7sCcLLWxC9mkIaoK5LIX9bp5UxYQG7q/wDPZvcAP0nwr51BXlDTG4fAeSjVsLpSAxGNdBxw==" crossorigin="anonymous"></script>
+		<script type="text/javascript" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-beT6rKtLu5r1n//Inx7Itv4vXYH5+1ZVG5EMk4LaWU37s7L7PrRVarqlvpESseZGlvvJ8mFJMnePh/2RjGnyLA==" crossorigin="anonymous"></script>
 		<!--[if lt IE 10]>
 		<style type="text/css">body {padding-left:60px;padding-right:60px;} #ienotice {display:block;} #oldienotice {display:block;}</style>
 		<![endif]-->