fix #24: ensure URL is updated for ajax

- test added: check url after attribute change
- run `.setUrl()` before performing ajax request