diff --git a/sanityCheck.sh b/sanityCheck.sh
index 5a3eed616d84eea19af0a723acd6ec5433238ed5..92e0fae0e798ed4d55101cb23ba2d21190ac3a02 100755
--- a/sanityCheck.sh
+++ b/sanityCheck.sh
@@ -110,8 +110,8 @@ $GREP -e "<<option\([lg]t\?\|default\) *>" -- 'src/*' | grep -v src/js | myprint
 $GREP -e "<<option " --and --not -e "<<option\s\+\(-\?[0-9]\+\|[\'\"].*[\'\"]\|false\|true\)\s\+[\`\'\"].*[\'\"\`]" -- 'src/*' | grep -v src/js | myprint "OptionBadArguments4"
 $GREP -e "<<if def [^(>]*[&|]" -- 'src/*' | myprint "AddBracketsAroundDef2"
 # check for missing ; before statement
-$GREP 'if $ ' -- 'src/*'  | myprint "missing ; before statement"
-$GREP 'elseif $ ' -- 'src/*'  | myprint "missing ; before statement"
+$GREP 'if $ ' -- 'src/*'  | myprint "Missing ; before statement"
+$GREP 'elseif $ ' -- 'src/*'  | myprint "Missing ; before statement"
 # Check for an unrecognized letter before >>
 $GREP "[^]a-zA-Z0-9 \")}'+-\*\`] *>>" -- 'src/*' | myprint "StrangeCharacterAtEndOfCommand"
 # Check for a . inside a <<>>
@@ -125,6 +125,8 @@ $GREP -E "</span>(\.|,|;|:)\s" -- src/*.js | myprint "WrongSelectorPunctuation"
 #$GREP -E "\(.(\+|\-|\*|\/|\=)." -- src/*.js :^Jquery.js,^dTree.js,^dTree.min.js,^format.js,^mousetrap.js | myprint "MissingWhitespace"
 # Check for @@ selector instead of <span> selector
 $GREP "@@\." -- src/*.js | myprint "WrongSelectorUsed"
+# Check for JSdoc inside function declaration
+$GREP ".\=.\/\*\*" -- src/*.js | myprint "WrongJSdocFormat"
 
 # Check that we do not have any variables that we use only once.   e.g.	 $onlyUsedOnce
 # Ignore  *Nationalities