   # @private
   #
   storeThisInData: ->
-    @field.data 'showPasswordObject', this # so that the placeholderManager can eventually pick this up
+    @field.data('showPasswordObject', this) # so that the placeholderManager can eventually pick this up
 
   #
   # @private
   #
   insertShowPasswordCheckbox: ->
     showPasswordWrap  = $('<div>', class: 'checkbox_wrap')
-    showPasswordLabel = $('<label />', for: "show_password_#{@index}").text 'Show password'
+    showPasswordLabel = $('<label />', for: "show_password_#{@index}").text('Show password')
     showPasswordWrap.append(@showPasswordCheckbox).append(showPasswordLabel)
 
     this.injectShowPasswordCheckboxInDom(showPasswordWrap)

  # @private
  #
  attachEventHandlerToCheckbox: ->
    @showPasswordCheckbox.on 'click', this.togglePasswordVisibility

  #
  # @private


    # We can't simply modify the type attribute of the field (from 'password' to 'text'), because IE doesn't support this
    # cf: http://www.alistapart.com/articles/the-problem-with-passwords
    newField = $('<input />',
      id:          @field.attr 'id'
      name:        @field.attr 'name'
      value:       @field.val()
      size:        @field.size()
      placeholder: @field.attr 'placeholder'
      required:    @field.attr 'required'
      class:       @field.attr 'class'
      type:        fieldType)

    if @field.data 'pseudoPlaceholderObject'
      pseudoPlaceholderObject = @field.data('pseudoPlaceholderObject')

    @field.removeData() # Removes eventual observers and storage keys
    @field.replaceWith newField
