Minor improvements found with more strict jslint.