diff --git a/javascript/libjoynr-js/src/main/js/joynr/capabilities/CapabilitiesStore.js b/javascript/libjoynr-js/src/main/js/joynr/capabilities/CapabilitiesStore.js
index <HASH>..<HASH> 100644
--- a/javascript/libjoynr-js/src/main/js/joynr/capabilities/CapabilitiesStore.js
+++ b/javascript/libjoynr-js/src/main/js/joynr/capabilities/CapabilitiesStore.js
@@ -227,7 +227,7 @@ define(
                  */
                 var checkAge = function checkAge(discoveryEntry, maxAge) {
                     var registrationTime = registeredCapabilitiesTime[hashCode(discoveryEntry)];
-                    if (registrationTime === undefined || maxAge === undefined) {
+                    if (registrationTime === undefined || maxAge === undefined || maxAge < 0) {
                         return true;
                     }
                     return (Date.now() - registrationTime <= maxAge);
[JS] CapabilitiesStore.checkAge ignores negative max ages

This way, the age of capabilities can be ignored

Change-Id: I0e4cee<I>e<I>fdb<I>b6f5a<I>c0bc<I>bfa6b1