Make Object#toString robust against tampering.
Don't shadow the function name.
Remove unnecessary parens.
Use distinct for loop iteration variables / don't shadow "j"