Add domain name to js
Correctly serve 404 for JSON
Disable protections that doesn't allow JSON API to work
Rewrite example javascript