diff --git a/backbone.localStorage.js b/backbone.localStorage.js
index <HASH>..<HASH> 100644
--- a/backbone.localStorage.js
+++ b/backbone.localStorage.js
@@ -142,7 +142,9 @@ _.extend(Backbone.LocalStorage.prototype, {
 Backbone.LocalStorage.sync = window.Store.sync = Backbone.localSync = function(method, model, options) {
   var store = model.localStorage || model.collection.localStorage;
 
-  var resp, errorMessage, syncDfd = Backbone.$.Deferred && Backbone.$.Deferred(); //If $ is having Deferred - use it.
+  var resp, errorMessage,
+    // If $ and $ is having Deferred - use it.
+    syncDfd = Backbone.$ && Backbone.$.Deferred && Backbone.$.Deferred();
 
   try {
Remove DOM library hard dependency

Backbone only has a dependency on a DOM library if you intend to use
Backbone.View. If you don't include a DOM library, `Backbone.$` will be
undefined.

Since Backbone.localStorage doesn't have a hard dependency on
`jQuery.Deferred`, it should check for the existence of `Backbone.$`
before accessing one of its members.

This makes it possible to use Backbone.localStorage with Backbone and
an alternative to Backbone.View.