g.js moved to header