 
     handleDefaultFormState: () ->
 
-        show_form = $.cookie('todos_prefs:show_form')
+        show_form = $.cookie 'todos_prefs:show_form'
 
         # The collection must fire "reset" before the value is relevant
         isListEmpty = @taskList.tasks.length is 0
 
         # The form is shown by default if the cookie is set or
         # if it doesn't exist or if the collection is empty
-        if(show_form is 'true' || !show_form? || isListEmpty)
+        if show_form is 'true' or !show_form? or isListEmpty
             @showTaskForm()
 
         else

            @newTaskButtonHandler()

            keyCode = event.which | event.keyCode
            @taskCreationHandler(event) if keyCode is 13 # enter key

        @newTaskFormInput.focus (event) =>
            @newTaskFormInput.val("") unless @hasUserTyped


        # If the list is empty, we need to show the form
        @taskList.tasks.on 'remove', (collection) =>
            @toggleTaskForm false, true if @taskList.tasks.length is 0

        # whether the user has written something or not in the new task form
        @hasUserTyped = false
