Executing Javascript from anonymous function.