Add handlebars to facilitate js templating
Add xhr function