add javascript closure sample