fix js pythonisme

But POST request is now wrong.

Investigating.