First pass rewrite of corimf-check with node.js