Using an html template, loading config through an ajax request