Port some for-each to jquery.each.
Port some for-each to jquery.each.

Just a personal preference, and sometimes when other js extends the array prototype,
native for each can fall apart.

samuelcole/wymeditor,samuelcole/wymeditor,samuelcole/wymeditor,samuelcole/wymeditor,samuelcole/wymeditor,samuelcole/wymeditor