webui: Fixes in webui/static scripts for Internet Explorer

Internet Explorer showed a blank page in "Quirks" mode.
Removed surplus commas and changed syntax when reserved words were used as identifiers.
See: https://tvheadend.org/boards/5/topics/13881