Same NPC generator using Flask as a Framework and Ajax gets