continue statement in javascript foreach