Javascript and html with python function