Added standalone switch to expose etp on the window object.