Python Create Function In Javascript Onclick Refresh