Refactor semver.clean in npmalerts.js