Wrapped script in closure