           if i >= (steps.length - 1)
             $(_modal).modal('replaceSubmit')
 
-          if $(_modal).html().indexOf('<%=') > 0
+          if $(_modal).text().indexOf('<%=') > 0
             throw "Template not done"
+
 
           views["step#{i}"] = view: _.template($(_modal).html())
 

          catch e
            json = { error: "We're sorry, there was an error." }
          html = _.template BBM_TEMPLATE, title: "Oops!", content: "<p>#{json.error}</p>"
          $(this).html html

        complete: (object) =>
          # if this request was clicked while this request was loading,

$ ->  

  $('script[data-path]').each ->
    $(this).modal 'load' if $(this).attr("data-precache")

  $(document.body).on 'click', '*[data-open-modal]', (e) ->
    e.preventDefault()
