diff --git a/Yesod/Fay.hs b/Yesod/Fay.hs
--- a/Yesod/Fay.hs
+++ b/Yesod/Fay.hs
@@ -215,7 +215,7 @@
     addScriptEither $ urlJqueryJs master
     render <- lift getUrlRender
     -- FIXME get rid of toLazyText call below
-    toWidget [julius|window.yesodFayCommandPath = #{toLazyText $ fromValue $ toJSON $ render $ fayRoute FayCommandR};|]
+    toWidget [julius|window.yesodFayCommandPath = #{toJSON $ render $ fayRoute FayCommandR};|]
 
 mkfp :: String -> FilePath
 mkfp name = "fay/" ++ name ++ ".hs"
diff --git a/yesod-fay.cabal b/yesod-fay.cabal
--- a/yesod-fay.cabal
+++ b/yesod-fay.cabal
@@ -2,7 +2,7 @@
 -- documentation, see http://haskell.org/cabal/users-guide/
 
 name:                yesod-fay
-version:             0.1.0.1
+version:             0.1.0.2
 synopsis:            Utilities for using the Fay Haskell-to-JS compiler with Yesod.
 description:         For initial discussion, see <http://www.yesodweb.com/blog/2012/10/yesod-fay-js>. This is a work-in-progress.
 homepage:            https://github.com/snoyberg/yesod-fay
@@ -28,7 +28,7 @@
                      , system-filepath >= 0.4
                      , template-haskell
                      , process
-                     , shakespeare-js >= 1.0
+                     , shakespeare-js >= 1.0.2
                      , yesod-core >= 1.1
                      , yesod-form >= 1.1
                      , yesod-json >= 1.1
