Fix typo.
Fix jsDoc.
Fix wrong return value.
Remove unused method.