This line is very long due to oldData.response.leadboard.length . I would assign this to a var.