Two version for testing

Each is wrapped in a closure to give access to a unique name at window
scope.