refactor: satisfy jslint