Updated to have a standalone build process using commonJS