adjusted New button position, organized jQuery code