diff --git a/www/js/services/crypto-services.js b/www/js/services/crypto-services.js
index 3ccafea657b1cc2f7e9e73aff1ebba550321b024..75ebb37b18555de289e500c80d107e7863a7d176 100644
--- a/www/js/services/crypto-services.js
+++ b/www/js/services/crypto-services.js
@@ -822,7 +822,7 @@ angular.module('cesium.crypto.services', ['cesium.utils.services'])
         return deferred.promise;
       };
 
-      function load() {
+      this.load = function() {
         var deferred = $q.defer();
         if (!window.plugins || !window.plugins.MiniSodium) {
           deferred.reject("Cordova plugin 'MiniSodium' not found. Please load Full JS implementation instead.");
diff --git a/www/plugins/es/js/controllers/message-controllers.js b/www/plugins/es/js/controllers/message-controllers.js
index 511f6722b99e42185632de69faf9c5a395a327f4..b4b49d2912da9316df3326055c25554c2c2c12fc 100644
--- a/www/plugins/es/js/controllers/message-controllers.js
+++ b/www/plugins/es/js/controllers/message-controllers.js
@@ -809,7 +809,7 @@ function ESMessageViewController($scope, $state, $timeout, $translate, $ionicHis
             }
           }, 2000); // 2s
         }
-      })
+      });
   };
   $scope.$on('$ionicView.enter', $scope.enter);