many fixes

- set `POST` method for Ajax
- send viewport info
- do not stringify JSON