This is the code I use to create a Google Client wrapper
var googleAuth = (function () { function installClient () {