Fixing incorrect method syntax on browser fetch