Made a few changes in templates and javascript calls (in CORS, specifically).