Use getSite function, not constructor, as docs say, fixing bug with script

Change-Id: Ic947805d22d7f64e33b924c1e4449606431678fa