   requestHandlers =
     focusFrame: (request) -> if (frameId == request.frameId) then focusThisFrame request
     getScrollPosition: (ignoredA, ignoredB, sendResponse) ->
-      sendResponse scrollX: window.scrollX, scrollY: window.scrollY if frameId == 0
+      if frameId == 0
+        sendResponse scrollX: window.scrollX, scrollY: window.scrollY
     setScrollPosition: setScrollPosition
     frameFocused: -> # A frame has received the focus; we don't care here (UI components handle this).
     checkEnabledAfterURLChange: checkEnabledAfterURLChange
     runInTopFrame: ({sourceFrameId, registryEntry}) ->
-      NormalModeCommands[registryEntry.command] sourceFrameId, registryEntry if DomUtils.isTopFrame()
+      if DomUtils.isTopFrame()
+        NormalModeCommands[registryEntry.command] sourceFrameId, registryEntry
     linkHintsMessage: (request) -> HintCoordinator[request.messageType] request
     showMessage: (request) -> HUD.showForDuration request.message, 2000
     executeScript: (request) -> DomUtils.injectUserScript request.script

            _name: "grab-back-focus-focus"
            focus: (event) => @grabBackFocus event.target
          # An input may already be focused. If so, grab back the focus.
          @grabBackFocus document.activeElement if document.activeElement
        else
          @exit()

    # This mode is active in all frames.  A user might have begun interacting with one frame without other
    # frames detecting this.  When one GrabBackFocus mode exits, we broadcast a message to inform all

        return new GrabBackFocus()
      else
        target = target.parentElement
    return true

installModes = ->
  # Install the permanent modes. The permanently-installed insert mode tracks focus/blur events, and
