diff --git a/WebBits.cabal b/WebBits.cabal
--- a/WebBits.cabal
+++ b/WebBits.cabal
@@ -1,5 +1,5 @@
 Name:           WebBits
-Version:        0.14.0
+Version:        0.15
 Cabal-Version:	>= 1.2.3
 Copyright:      Copyright (c) 2007-2009 Arjun Guha and Spiridon Eliopoulos
 License:        LGPL
diff --git a/src/BrownPLT/JavaScript/Environment.hs b/src/BrownPLT/JavaScript/Environment.hs
--- a/src/BrownPLT/JavaScript/Environment.hs
+++ b/src/BrownPLT/JavaScript/Environment.hs
@@ -140,7 +140,9 @@
     -> (EnvTree,Map String SourcePos)
 env globals program = makeEnvTree globals (unions $ map stmt program)
 
+
 localVars :: [Statement SourcePos]
-          -> Set String
-localVars body = S.fromList (M.keys locals) where
+          -> [(String, SourcePos)]
+localVars body = M.toList locals where
   Partial locals _ _ = unions $ map stmt body
+
