[js] fix do..while execution change (break/continue)