would jslint have caught this?