starting ajax calls, flaskServer API update