 
 requirejs ['../dist/zxcvbn'], (zxcvbn) ->
   $ ->
+    window.zxcvbn = zxcvbn
     results_lst = []
     for password in test_passwords.split('\n') when password
       r = zxcvbn(password)
       round_logs(r)
       r.sequence_display = Mustache.render(props_tmpl, r)
       r.guess_times_display = Mustache.render(guess_times_tmpl, r.crack_times_display)
+      r.feedback.has_suggestions = r.feedback.suggestions.length > 0
+      r.feedback_display = Mustache.render(feedback_tmpl, r.feedback)
       results_lst.push r
 
     rendered = Mustache.render(results_tmpl, {

    <td>{{offline_fast_hashing_1e10_per_second}}</td>
    <td> (offline attack, fast hash, many cores)</td>
  </tr>
'''

props_tmpl = '''

        round_logs(r)
        r.sequence_display = Mustache.render(props_tmpl, r)
        r.guess_times_display = Mustache.render(guess_times_tmpl, r.crack_times_display)
        r.feedback.has_suggestions = r.feedback.suggestions.length > 0
        r.feedback_display = Mustache.render(feedback_tmpl, r.feedback)
        results = {results: [r]}
        rendered = Mustache.render(results_tmpl, results)
        $('#search-results').html(rendered)
