js: Cleanup debug.js example to use ES syntax.
js: Cleanup debug.js example to use ES syntax.

brainwane/zulip,hackerkid/zulip,synicalsyntax/zulip,timabbott/zulip,rht/zulip,brainwane/zulip,showell/zulip,showell/zulip,hackerkid/zulip,timabbott/zulip,zulip/zulip,brainwane/zulip,timabbott/zulip,hackerkid/zulip,showell/zulip,synicalsyntax/zulip,punchagan/zulip,eeshangarg/zulip,brainwane/zulip,andersk/zulip,brainwane/zulip,punchagan/zulip,eeshangarg/zulip,timabbott/zulip,hackerkid/zulip,andersk/zulip,kou/zulip,rht/zulip,punchagan/zulip,brainwane/zulip,synicalsyntax/zulip,hackerkid/zulip,synicalsyntax/zulip,rht/zulip,synicalsyntax/zulip,kou/zulip,shubhamdhama/zulip,punchagan/zulip,hackerkid/zulip,showell/zulip,showell/zulip,synicalsyntax/zulip,showell/zulip,rht/zulip,kou/zulip,andersk/zulip,timabbott/zulip,andersk/zulip,punchagan/zulip,kou/zulip,shubhamdhama/zulip,andersk/zulip,shubhamdhama/zulip,synicalsyntax/zulip,timabbott/zulip,hackerkid/zulip,zulip/zulip,brainwane/zulip,rht/zulip,shubhamdhama/zulip,punchagan/zulip,zulip/zulip,eeshangarg/zulip,andersk/zulip,zulip/zulip,kou/zulip,shubhamdhama/zulip,eeshangarg/zulip,kou/zulip,eeshangarg/zulip,rht/zulip,timabbott/zulip,shubhamdhama/zulip,zulip/zulip,rht/zulip,shubhamdhama/zulip,showell/zulip,kou/zulip,eeshangarg/zulip,punchagan/zulip,zulip/zulip,andersk/zulip,eeshangarg/zulip,zulip/zulip