Don't use keyword as method name (Bug #13596).
Remove trailing commas (Bug #13596).
[jan] Fix closure compiler errors (Bug #13596).
Fix typo.