fix python to js