Fix jsDoc.
Fix rendering bugs and refactor.
Remove console.log.
Fix jsDoc.