replace js to snap version