Fixed javascript parser to handle for statements without iterator terms.