Attempt to call second function in .each