diff --git a/view/adminhtml/web/js/versioncheck.js b/view/adminhtml/web/js/versioncheck.js
index 8ba036a5..7c74bf1e 100644
--- a/view/adminhtml/web/js/versioncheck.js
+++ b/view/adminhtml/web/js/versioncheck.js
@@ -1,6 +1,29 @@
require([
'jquery'
], function (jQuery) {
+
+ function compareversion(version1,version2){
+ var result=false;
+
+ if(typeof version1 !=='object'){ version1=version1.toString().split('.'); }
+ if(typeof version2 !=='object'){ version2=version2.toString().split('.'); }
+
+ for(var i=0;i<(Math.max(version1.length,version2.length));i++){
+
+ if(version1[i]==undefined){ version1[i]=0; }
+ if(version2[i]==undefined){ version2[i]=0; }
+
+ if(Number(version1[i]) current_version) {
+ if (compareversion(current_version, newest_version)) {
result = 'There is a new version available (' + json.version + ')'
} else {
jQuery('#paynl_version_check_button').hide();