adapt to new jslint