Cleaner function call in npmalerts.js