 
 Bacon._ = _
 
-Bacon.scheduler =
+Bacon.scheduler = {
   setTimeout: (f,d) -> setTimeout(f,d)
   setInterval: (f, i) -> setInterval(f, i)
   clearInterval: (id) -> clearInterval(id)
   now: -> new Date().getTime()
+}
 
 if define? and define.amd?
   define [], -> Bacon

  inspect: -> "Some(" + @value + ")"
  toString: -> @inspect()

None =
  getOrElse: (value) -> value
  filter: -> None
  map: -> None

  toArray: -> []
  inspect: -> "None"
  toString: -> @inspect()
}

DepCache = (->
  flatDeps = {}
