CRUD app using AJAX and foundation template