       </form>
     </div>
   ".trim()).appendTo($('body'))
+  if isRepeat
+    $("<div>(The one you tried was taken)</div>").insertAfter($el.find('input'))
   $form = $el.find('form')
   $form.on 'submit', (e) ->
     value = $el.find('input').val()

window.WD = window.WD or {}

_showUsernamePrompt = (callback) ->
  $el = $("
    <div class='username-prompt-container'>
      <form class='username-prompt'>

    false


WD.ensureUsername = (callback, isRepeat = false) ->
  if localStorage.getItem('username')
    fb.child(localStorage.getItem('username')).once 'value', (snapshot) ->
      unless snapshot.val()
