Yield support would be a nice addition.
Pyjamas and Skulpt support yield statements, so it is definitely possible. Skulpt is released under MIT and Pyjamas uses ASL, so there is no harm in looking at the solution they use.
for i in range(1,100):
Use the above in the interactive input box on the skulpt.org homepage to see yield support.
I definitely agree.