Python Create Function In Javascript Mdn String