add javascript closure stuff