Put ajax in full file and added comment about FormData