Stop DOM element interpretation as jquery property

Also eliminate unnecessary parenthesis around array indexing followed by
method calls or property accesses.