webui: cosmetics cleanup

This is an attempt to cleanup the js code with Netbeans IDE. Most notable changes are:

* format indenting change/cleanup to 4 space (4 spaces seems practice in Ext JS)
* Always use semicolon after a statement. Reference: http://stackoverflow.com/questions/444080/do-you-recommend-using-semicolons-after-every-statement-in-javascript
* Remove unneeded commas.
* Use strict comparison operator. Changing this could return a different result. But according to following reference, ==/=! are evil. http://stackoverflow.com/questions/359494/does-it-matter-which-equals-operator-vs-i-use-in-javascript-comparisons