Update module wrapper to work in Node and be more in line with UMDJS