Wrapped js into anonymous function