add simple for statement support for compiling to js