javascripts in result text inputs