Add debug information to check the completeness of the translation. re #37
Fix some warnings reported by JSHint.