made flask app compatible with angular.js