simple example of js closures added