add CommonJS build to Makefile
add CommonJS build
change main to use CommonJS build