g.js changed to async mode