Looks like dirty hack :)
1. Url should allow empty keyword argument
2. user_id should be added in js like in flask version