 
       elem.addClass 'negative' if parseInt(number, 10) < 0
 
+  # Take a string like 'Asgard.Whiteboard.Entry' and retrieve the real class
+  # with that name. Start at `window` and work down from there.
   @_stringToClass: (string) ->
     pieces = string.split('.')
 

    @initialize()

  initialize: ->
    $('[data-js-class]').each (index, elem) ->
      element = $(elem)
      klass = Fustrate._stringToClass element.data('js-class')


    Fustrate._arrayToClass pieces.slice(1), root[pieces[0]]

  # Very similar to the Rails helper `link_to`. Returns an HTML string.
  @linkTo: (text, path, options = {}) ->
    $('<a>').prop('href', path).html(text).prop(options).outerHTML()

