bidirectional JSON; use jquery