inline commonjs require function