help: Refactor code in help.js.
help: Refactor code in help.js.

This commit organizes the code properly i.e.
declaring variable on top of the function and
moving window events in the bottom.

Fixes: #9617.

rishig/zulip,brainwane/zulip,showell/zulip,tommyip/zulip,brainwane/zulip,hackerkid/zulip,kou/zulip,zulip/zulip,jackrzhang/zulip,punchagan/zulip,shubhamdhama/zulip,timabbott/zulip,hackerkid/zulip,punchagan/zulip,synicalsyntax/zulip,rishig/zulip,punchagan/zulip,dhcrzf/zulip,rht/zulip,andersk/zulip,shubhamdhama/zulip,rishig/zulip,jackrzhang/zulip,dhcrzf/zulip,punchagan/zulip,brainwane/zulip,rht/zulip,showell/zulip,synicalsyntax/zulip,tommyip/zulip,synicalsyntax/zulip,timabbott/zulip,zulip/zulip,eeshangarg/zulip,punchagan/zulip,dhcrzf/zulip,timabbott/zulip,rishig/zulip,shubhamdhama/zulip,eeshangarg/zulip,timabbott/zulip,eeshangarg/zulip,hackerkid/zulip,synicalsyntax/zulip,andersk/zulip,kou/zulip,eeshangarg/zulip,kou/zulip,dhcrzf/zulip,jackrzhang/zulip,zulip/zulip,jackrzhang/zulip,showell/zulip,hackerkid/zulip,brainwane/zulip,shubhamdhama/zulip,tommyip/zulip,showell/zulip,timabbott/zulip,brainwane/zulip,timabbott/zulip,punchagan/zulip,rht/zulip,brainwane/zulip,rishig/zulip,rht/zulip,shubhamdhama/zulip,eeshangarg/zulip,hackerkid/zulip,timabbott/zulip,jackrzhang/zulip,andersk/zulip,synicalsyntax/zulip,kou/zulip,tommyip/zulip,tommyip/zulip,hackerkid/zulip,rishig/zulip,dhcrzf/zulip,rishig/zulip,kou/zulip,showell/zulip,rht/zulip,kou/zulip,hackerkid/zulip,eeshangarg/zulip,dhcrzf/zulip,showell/zulip,dhcrzf/zulip,zulip/zulip,synicalsyntax/zulip,brainwane/zulip,shubhamdhama/zulip,andersk/zulip,jackrzhang/zulip,andersk/zulip,tommyip/zulip,eeshangarg/zulip,showell/zulip,zulip/zulip,shubhamdhama/zulip,punchagan/zulip,rht/zulip,zulip/zulip,synicalsyntax/zulip,tommyip/zulip,andersk/zulip,andersk/zulip,rht/zulip,kou/zulip,jackrzhang/zulip,zulip/zulip