Bugfix: accept json/ajax