```coffeescript
Neighborly.Devise ?= {}
Neighborly.Devise.Registrations ?= {}

Neighborly.Devise.Registrations.New =
  init: ->
    $('#show_password').change ->
      $input = $('#show_password')
      $password = $('#user_password')

      if $input.is(':checked')
        $password.prop 'type', 'text'
      else
        $password.prop 'type', 'password'
```

Refactor the if conditional on show password JS
user
```coffeescript
Neighborly.Devise ?= {}
Neighborly.Devise.Registrations ?= {}

Neighborly.Devise.Registrations.New =
  init: ->
    $('#show_password').change ->
      $password = $('#user_password')

      if $('#show_password').is(':checked')
        $password.prop 'type', 'text'
      else
        $password.prop 'type', 'password'
```
assistant