Cleanup and simplify JS code

Change-Id: I393e22763c1a1d18878026bf459b747b150429fb
diff --git a/dev/js/src/session.js b/dev/js/src/session.js
index f81eb8f..27af76d 100644
--- a/dev/js/src/session.js
+++ b/dev/js/src/session.js
@@ -61,10 +61,10 @@
       var pair = part[i].split('=');
       var name = pair[0].trim().toLowerCase();
       if (name === this._name) {
-	if (pair.length === 1 || pair[1].length === 0)
-	  return;
+	      if (pair.length === 1 || pair[1].length === 0)
+	        return;
         this._hash = JSON.parse(decodeURIComponent(pair[1]));
-	return;
+	      return;
       };
     };
   }