diff --git a/bundles/org.eclipse.orion.client.javascript/web/javascript/validator.js b/bundles/org.eclipse.orion.client.javascript/web/javascript/validator.js
index <HASH>..<HASH> 100644
--- a/bundles/org.eclipse.orion.client.javascript/web/javascript/validator.js
+++ b/bundles/org.eclipse.orion.client.javascript/web/javascript/validator.js
@@ -258,6 +258,15 @@ define([
 					}
 					if(token) {
 					   error.node = token;
+					   if(token.value) {
+					   		if(!error.args) {
+					   			error.args = Object.create(null);
+					   		}
+					   		if(!error.args.data) {
+					   			error.args.data = Object.create(null);
+					   		}
+					   		error.args.data.tokenValue = token.value;
+					   }
 					}
 					errors.push(error);
 				}
Bug <I> - Need a way to check if a problem returned from js validation has a token saying "return".