Wrapped script in anonymous function call