solved pass javascript