fix closure template, add acceptance test of common.js, amd