fix typoes in main and manage js, responseText