Fix jslint-reported errors