Big rewrite on read_j. Much better now.

Supports nesting quite well, and can read IF statements.