Moved root API to /api and fixed the javascript and HTML templates