set up AJAX functionality to add API data to jade template