1) the author tried to make it ugly. 2) the JavaScript was generated by a compiler.
Or, I suspect, both.