fix the JSHint problems and the additionally used methods
chore: commit the results of update-closure.sh and generate.sh