fixed 'for' & 'forin' statements on js
fixed control syntax on js