 
 url = ->
   search = queryString.parse location.search
-  search.custom = JSON.stringify custom_level.get()
+  search.custom = JSON.stringify custom_level()
   "#{location.origin}#{location.pathname}?#{queryString.stringify search}"
 
 pretty_source = ->
-  JSON.stringify custom_level.get(), null, 4
+  JSON.stringify custom_level(), null, 4
 
 exports.changelog =
   world: (level) ->

queryString = require 'query-string'
rx          = require 'reactive-coffee'

custom_level = rx.cell({ sprites: [], goal: {} })

actions_to_object = (actions) ->
  keys   = actions.keys()

    }

  set_custom: (custom) ->
    _custom_level.set custom

  url:           url
  pretty_source: pretty_source
