Javascript Function Is Not Executed In The First Iteration

Javascript Function Is Not Executed In The First Iteration