loop control in js
Merge remote-tracking branch 'origin/master'