rename amd format to cjs, syntax tuning